#include<stdio.h>
#include<string.h>

int main()
{
    /*任意输入一个字符串，翻转一下*/

    char buffer[] = "l am a student from jiangsu nanjing.";

    int front = 0;
    int back = strlen(buffer) - 1;

    for (int idx = 0;idx < strlen(buffer) / 2; idx++)
    {
        char tmpDate = buffer[front];
        buffer[front] = buffer[back];
        buffer[back] = tmpDate;

        front++;
        back--;
    }
    printf("buffer:%s\n",buffer);
}